<?php
Route::group(['namespace'=>'Goods'],function(){
    //商品基本路由
    Route::any('goodsList','GoodsController@goodsList')->name('admin.goods.goodslist')->middleware('access.routeNeedsPermission:goods-index');
    Route::any('goodsAdd','GoodsController@addGoods')->name('admin.goods.goodsadd')->middleware('access.routeNeedsPermission:goods-add');
    Route::any('goodsUpdate/id/{id?}','GoodsController@updateGoods')->name('admin.goods.goodsupdate')->middleware('access.routeNeedsPermission:goods-update');
    Route::get('goodsDel/id/{id}','GoodsController@delGoods')->name('admin.goods.goodsdel')->middleware('access.routeNeedsPermission:goods-delete');
    //商品恢复、物理删除
    Route::get('goodsRestore/id/{id}','GoodsController@restoreGoods')->name('admin.goods.goodsrestore')->middleware('access.routeNeedsPermission:goods-restore');
    Route::get('goodsForceDel/id/{id}','GoodsController@forceDelGoods')->name('admin.goods.goodsforcedel')->middleware('access.routeNeedsPermission:goods-forcedel');
    //商品分类基本路由
    Route::any('goodsCateList','GoodsCateController@goodsCateList')->name('admin.goods.goodscatelist')->middleware('access.routeNeedsPermission:goodscate-index');
    Route::any('goodsCateAdd','GoodsCateController@addGoodsCate')->name('admin.goods.goodscateadd')->middleware('access.routeNeedsPermission:goodscate-add');
    Route::any('goodsCateUpdate/id/{id?}','GoodsCateController@updateGoodsCate')->name('admin.goods.goodscateupdate')->middleware('access.routeNeedsPermission:goodscate-update');
    Route::get('goodsCateDel/id/{id}','GoodsCateController@delGoodsCate')->name('admin.goods.goodscatedel')->middleware('access.routeNeedsPermission:goodscate-delete');
    //商品分类恢复、物理删除
    Route::get('goodsCateRestore/id/{id}','GoodsCateController@restoreGoodsCate')->name('admin.goods.goodscaterestore')->middleware('access.routeNeedsPermission:goodscate-restore');
    Route::get('goodsCateForceDel/id/{id}','GoodsCateController@forceDelGoodsCate')->name('admin.goods.goodscateforcedel')->middleware('access.routeNeedsPermission:goodscate-forcedel');
});